// import { io } from "socket.io-client";

var socket = io('http://localhost:9998');

const sendData = (data) => {
	socket.on('connect', () => {
	      console.log('Connected to server: ' + socket.id);
	      // this.connected = true;
	      // this.myId = socket.id
	    });
}


export default {
	sendData,
	socket
}